package com.smedi.ismedi.inmail.core.port.adapter.persistence.mybatis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.smedi.ismedi.database.starter.annotation.SkipSqlPermission;
import com.smedi.ismedi.inmail.api.dto.request.QueryListTaskRecordRequest;
import com.smedi.ismedi.inmail.api.dto.request.QueryPageTaskRecordRequest;
import com.smedi.ismedi.inmail.core.domain.aggregatemodel.TaskRecord;
import com.smedi.ismedi.inmail.core.port.adapter.persistence.model.TaskRecordEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author u
 */
@Mapper
public interface TaskRecordMapper extends BaseMapper<TaskRecordEntity> {
    List<TaskRecordEntity> doList(@Param("request") QueryListTaskRecordRequest queryListTaskRecordRequest);

    IPage<TaskRecordEntity> doListPage(IPage iPage, @Param("request") QueryPageTaskRecordRequest queryPageTaskRecordRequest);

    int updateTaskStatus();
}